import Vue from 'vue'

Vue.mixin({
    methods: {
        hasAuth(perm){
            var permissionList = this.$store.state.menus.permissionList
            return permissionList.indexOf(perm) > -1
        }
    }
})
